package plugin

import org.gradle.api.Plugin
import org.gradle.api.Project

public class GeneratorPlugin implements Plugin<Project> {

    @Override
    void apply(Project project) {
        project.extensions.add("generator", GeneratorPlugin)
        project.task("showPersonInfo") << {
            println("姓名：")
        }
    }
}